using System;
using System.Collections.Generic;
using System.Text;

namespace libONR
{
    class libONR_maths
    {

        public static int beta = 1;//la variable qui sert a quoi ?
        public static int gain = 1;//le gain
        static Random rand= new Random();


        public static double sigmoid(double x)
        {
            //fonction sigmoide
            return (1.0 / (1.0 + Math.Exp(x * beta * -2.0)));
        }

        public static double GetRand()
        {
            double ret = 0;
            while (ret == 0)
            {
                ret = rand.NextDouble() - 0.5;
            }

            //Console.WriteLine(ret);

            return ret;
        }

    }
}
